
package com.briup.cms.service;

import com.briup.cms.bean.Article;
import com.briup.cms.bean.extend.ArticleExtend;
import com.briup.cms.exception.CustomerException;
import com.github.pagehelper.PageInfo;

import java.security.cert.CertStoreException;

public interface IArticleService {
    Article selectByPrimaryKey(Integer id) throws CustomerException;
    Article saveOrUpdate(Article article) throws CustomerException;
    void changeStatus(Integer id, Integer status) throws CustomerException;
    void delete(Integer id) throws CustomerException;
    PageInfo<ArticleExtend> pageQueryArticleWithCategoryAndUser(Integer num, Integer size,
                                                                String articleTittle,
                                                                Integer Status,
                                                                Integer categoryId) throws CustomerException;
    PageInfo<ArticleExtend> pageQueryArticleRecommended(int num, int size) throws CustomerException;
    void deleteArticleByCategoryId(int categoryId) throws CustomerException;
}
